//
//  feedback_Controller.m
//  SoundPill
//
//  Created by 宋鹏鹏 on 15/4/23.
//  Copyright (c) 2015年 宋旭东. All rights reserved.
//设置-意见反馈

#import "feedback_Controller.h"
#import "UIViewExt.h"
@interface feedback_Controller ()<UITextViewDelegate>
{
    //UIButton *sendItem;
}
@end

@implementation feedback_Controller

- (void)viewDidLoad {
    [super viewDidLoad];
    UIButton *back = [UIButton buttonWithType:UIButtonTypeCustom];
    [back setFrame:CGRectMake(0, 0, 30, 30)];
    [back setImage:[UIImage imageNamed:@"backButton"] forState:UIControlStateNormal];
    [back addTarget:self action:@selector(backTo) forControlEvents:UIControlEventTouchUpInside];
    UIBarButtonItem *backItem = [[UIBarButtonItem alloc] initWithCustomView:back];
    self.navigationItem.leftBarButtonItem = backItem;
//    self.view.backgroundColor = [UIColor whiteColor];
    self.navigationItem.title = @"意见反馈";
    
    UIWebView *web = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, self.view.width, self.view.height - 64)];
    [web loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://pillele.cn/helps"]]];
    [self.view addSubview:web];
}
/*
 self.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"head_bacground"]];
 
 UIImageView *topView = [[UIImageView alloc]initWithFrame:CGRectMake(self.view.width*0.36, 2, self.view.width*0.28, self.view.height*0.15)];
 topView.image = [UIImage imageNamed:@"feedBackTop"];
 [self.view addSubview:topView];
 
 UILabel *label1 = [[UILabel alloc]initWithFrame:CGRectMake(self.view.width*0.2, topView.bottom, self.view.width*0.6, 20)];
 label1.text = @"我到底做错什么了";
 label1.textColor = [UIColor blackColor];
 label1.font = [UIFont systemFontOfSize:18];
 label1.textAlignment = NSTextAlignmentCenter;
 [self.view addSubview:label1];
 UILabel *label2 = [[UILabel alloc]initWithFrame:CGRectMake(self.view.width*0.2, label1.bottom, self.view.width*0.6, 20)];
 label2.text = @"你要这样对我";
 label2.textColor = [UIColor blackColor];
 label2.font = [UIFont systemFontOfSize:18];
 label2.textAlignment = NSTextAlignmentCenter;
 [self.view addSubview:label2];
 //
 UILabel *label3 = [[UILabel alloc]initWithFrame:CGRectMake(self.view.width*0.1, label2.bottom+10, self.view.width*0.8, 20)];
 label3.text = @"如果你还爱我，截图扫下面的二维码，我们还能做朋友";
 label3.textColor = [UIColor lightGrayColor];
 label3.font = [UIFont systemFontOfSize:10];
 label3.textAlignment = NSTextAlignmentCenter;
 [self.view addSubview:label3];
 
 UIImageView *midelView = [[UIImageView alloc]initWithFrame:CGRectMake(self.view.width*0.25, label3.bottom + 5, self.view.width*0.5, self.view.width*0.5)];
 midelView.image = [UIImage imageNamed:@"feedcode"];
 [self.view addSubview:midelView];
 
 UILabel *label4 = [[UILabel alloc]initWithFrame:CGRectMake(self.view.width*0.1, midelView.bottom+4, self.view.width*0.8, 20)];
 label4.text = @"或者复制下面的微信号在公众号搜我搜我";
 label4.textColor = [UIColor lightGrayColor];
 label4.font = [UIFont systemFontOfSize:10];
 label4.textAlignment = NSTextAlignmentCenter;
 [self.view addSubview:label4];
 //
 UITextView *textView = [[UITextView alloc]initWithFrame:CGRectMake(self.view.width*0.2, label4.bottom-4, self.view.width*0.6, 30)];
 textView.text = @"Soundlaaaab";
 textView.backgroundColor = [UIColor clearColor];
 textView.textColor = [UIColor blackColor];
 textView.font = [UIFont systemFontOfSize:18];
 textView.textAlignment = NSTextAlignmentCenter;
 textView.editable = NO;
 [self.view addSubview:textView];
 
 
 UIImageView *bottomView = [[UIImageView alloc]initWithFrame:CGRectMake(0,self.view.height-64- self.view.height*0.21, self.view.width, self.view.height*0.21)];
 bottomView.image = [UIImage imageNamed:@"feedBackbottom"];
 [self.view addSubview:bottomView];
 */
- (void)backTo
{
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
